.class public Lcom/example/inshopbuy/ConsumeInShop;
.super Landroid/app/Activity;
.source "ConsumeInShop.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;
    }
.end annotation


# instance fields
.field private ImageView01:Landroid/widget/ImageView;

.field private LinearLayout01:Landroid/widget/LinearLayout;

.field private acountdata:Lorg/json/JSONObject;

.field private alimobile:Ljava/lang/String;

.field private final alimobile_flag:I

.field private alipay_choose_icon:Landroid/widget/ImageView;

.field private alipaylay:Landroid/widget/LinearLayout;

.field private allconsume:Landroid/widget/EditText;

.field private api:Lcom/tencent/mm/sdk/openapi/IWXAPI;

.field private choice_pay_name:Ljava/lang/String;

.field private closebtn:Landroid/widget/LinearLayout;

.field private consumBean:Lcom/example/inshopbuy/ConsumBean;

.field private context:Landroid/content/Context;

.field private getHttpFail:Z

.field private getHttpFailMesseg:Ljava/lang/String;

.field private h:Landroid/os/Handler;

.field private is_shophui:Landroid/widget/TextView;

.field private ispaylock:Z

.field private m:Lmyapp/MyApp;

.field private name:Landroid/widget/TextView;

.field private open_acout:Ljava/lang/String;

.field private orderid:Ljava/lang/String;

.field private payBeans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/example/inshopbuy/PayTypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private shopid:Ljava/lang/String;

.field private taodata:Lorg/json/JSONObject;

.field private titlename:Ljava/lang/String;

.field private true_money:Landroid/widget/TextView;

.field private truecost:Ljava/lang/String;

.field private tv_order:Landroid/widget/TextView;

.field private weixin:Ljava/lang/String;

.field private weixin_choose_icon:Landroid/widget/ImageView;

.field private final weixin_flag:I

.field private weixindata:Lorg/json/JSONObject;

.field private weixinpaylay:Landroid/widget/LinearLayout;

.field private wmrid:Ljava/lang/String;

.field private yucost:Ljava/lang/String;

.field private yucost_choose_icon:Landroid/widget/ImageView;

.field private yucostpay:Landroid/widget/LinearLayout;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 52
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 73
    new-instance v0, Lcom/example/inshopbuy/ConsumBean;

    invoke-direct {v0}, Lcom/example/inshopbuy/ConsumBean;-><init>()V

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->consumBean:Lcom/example/inshopbuy/ConsumBean;

    .line 77
    const-string v0, ""

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixin:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->alimobile:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->open_acout:Ljava/lang/String;

    .line 78
    const-string v0, ""

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->choice_pay_name:Ljava/lang/String;

    .line 79
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->payBeans:Ljava/util/List;

    .line 84
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->ispaylock:Z

    .line 86
    const/16 v0, 0x63

    iput v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->alimobile_flag:I

    .line 87
    const/16 v0, 0x64

    iput v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixin_flag:I

    .line 93
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->getHttpFail:Z

    .line 94
    const-string v0, ""

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->getHttpFailMesseg:Ljava/lang/String;

    .line 52
    return-void
.end method

.method static synthetic access$0(Lcom/example/inshopbuy/ConsumeInShop;)Z
    .locals 1

    .prologue
    .line 93
    iget-boolean v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->getHttpFail:Z

    return v0
.end method

.method static synthetic access$1(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 100
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->orderid:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$11(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 98
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->yucost:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 101
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->truecost:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$13(Lcom/example/inshopbuy/ConsumeInShop;Z)V
    .locals 0

    .prologue
    .line 93
    iput-boolean p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->getHttpFail:Z

    return-void
.end method

.method static synthetic access$14(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 94
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->getHttpFailMesseg:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$15(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 77
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixin:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$16(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 64
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixinpaylay:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$17(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 77
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->alimobile:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$18(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->alipaylay:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$19(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 77
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->open_acout:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 94
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->getHttpFailMesseg:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$20(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->yucostpay:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$21(Lcom/example/inshopbuy/ConsumeInShop;)Lcom/example/inshopbuy/ConsumBean;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->consumBean:Lcom/example/inshopbuy/ConsumBean;

    return-object v0
.end method

.method static synthetic access$22(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/LinearLayout;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->LinearLayout01:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic access$23(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->name:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$24(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 82
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->is_shophui:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$25(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->ImageView01:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$26(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->true_money:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$27(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 101
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->truecost:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$28(Lcom/example/inshopbuy/ConsumeInShop;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$29(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 96
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/inshopbuy/ConsumeInShop;)V
    .locals 0

    .prologue
    .line 306
    invoke-direct {p0}, Lcom/example/inshopbuy/ConsumeInShop;->makeOrder()V

    return-void
.end method

.method static synthetic access$30(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/EditText;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->allconsume:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic access$31(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 78
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->choice_pay_name:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$32(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 75
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$33(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 98
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->yucost:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$34(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 77
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->alimobile:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$35(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 77
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixin:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$36(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 77
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->open_acout:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$37(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/util/List;
    .locals 1

    .prologue
    .line 79
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->payBeans:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$38(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;Lcom/example/inshopbuy/ConsumBean;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 561
    invoke-direct {p0, p1, p2}, Lcom/example/inshopbuy/ConsumeInShop;->youhuimake(Ljava/lang/String;Lcom/example/inshopbuy/ConsumBean;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 68
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixin_choose_icon:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 67
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->alipay_choose_icon:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/inshopbuy/ConsumeInShop;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 69
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->yucost_choose_icon:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 78
    iput-object p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->choice_pay_name:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$8(Lcom/example/inshopbuy/ConsumeInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 100
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->orderid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/inshopbuy/ConsumeInShop;Z)V
    .locals 0

    .prologue
    .line 84
    iput-boolean p1, p0, Lcom/example/inshopbuy/ConsumeInShop;->ispaylock:Z

    return-void
.end method

.method private getHttpShopConsumeData()V
    .locals 2

    .prologue
    .line 599
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/inshopbuy/ConsumeInShop$5;

    invoke-direct {v1, p0}, Lcom/example/inshopbuy/ConsumeInShop$5;-><init>(Lcom/example/inshopbuy/ConsumeInShop;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 684
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 686
    return-void
.end method

.method private initData()V
    .locals 2

    .prologue
    .line 378
    iput-object p0, p0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    .line 379
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->m:Lmyapp/MyApp;

    .line 380
    invoke-virtual {p0}, Lcom/example/inshopbuy/ConsumeInShop;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "shopid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->shopid:Ljava/lang/String;

    .line 381
    return-void
.end method

.method private initView()V
    .locals 1

    .prologue
    .line 857
    const v0, 0x7f0c0063

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->ImageView01:Landroid/widget/ImageView;

    .line 858
    const v0, 0x7f0c0001

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->closebtn:Landroid/widget/LinearLayout;

    .line 859
    const v0, 0x7f0c005f

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->allconsume:Landroid/widget/EditText;

    .line 860
    const v0, 0x7f0c0064

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->true_money:Landroid/widget/TextView;

    .line 861
    const v0, 0x7f0c004a

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->tv_order:Landroid/widget/TextView;

    .line 862
    const v0, 0x7f0c0061

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->name:Landroid/widget/TextView;

    .line 863
    const v0, 0x7f0c0062

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->is_shophui:Landroid/widget/TextView;

    .line 864
    const v0, 0x7f0c0024

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->alipaylay:Landroid/widget/LinearLayout;

    .line 865
    const v0, 0x7f0c0026

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixinpaylay:Landroid/widget/LinearLayout;

    .line 866
    const v0, 0x7f0c0065

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->yucostpay:Landroid/widget/LinearLayout;

    .line 867
    const v0, 0x7f0c0025

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->alipay_choose_icon:Landroid/widget/ImageView;

    .line 868
    const v0, 0x7f0c0027

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixin_choose_icon:Landroid/widget/ImageView;

    .line 869
    const v0, 0x7f0c0066

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->yucost_choose_icon:Landroid/widget/ImageView;

    .line 870
    const v0, 0x7f0c0060

    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->LinearLayout01:Landroid/widget/LinearLayout;

    .line 872
    return-void
.end method

.method private makeOrder()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 308
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop;->choice_pay_name:Ljava/lang/String;

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 310
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    const-string v4, "\u8bf7\u9009\u62e9\u652f\u4ed8\u65b9\u5f0f"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 374
    :goto_0
    return-void

    .line 314
    :cond_0
    iput-boolean v5, p0, Lcom/example/inshopbuy/ConsumeInShop;->ispaylock:Z

    .line 317
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop;->allconsume:Landroid/widget/EditText;

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-interface {v3}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    .line 318
    .local v2, "value":Ljava/lang/String;
    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 319
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    const-string v4, "\u8bf7\u8f93\u5165\u6d88\u8d39\u91d1\u989d"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 323
    :cond_1
    const-string v3, "[0-9,.]*"

    invoke-static {v3}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v1

    .line 325
    .local v1, "pattern":Ljava/util/regex/Pattern;
    invoke-virtual {v1, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    .line 327
    .local v0, "isNum":Ljava/util/regex/Matcher;
    invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z

    move-result v3

    if-nez v3, :cond_2

    .line 328
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    const-string v4, "\u6d88\u8d39\u91d1\u989d\u586b\u5199\u6709\u8bef"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 334
    :cond_2
    new-instance v3, Ljava/lang/Thread;

    new-instance v4, Lcom/example/inshopbuy/ConsumeInShop$2;

    invoke-direct {v4, p0}, Lcom/example/inshopbuy/ConsumeInShop$2;-><init>(Lcom/example/inshopbuy/ConsumeInShop;)V

    invoke-direct {v3, v4}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 373
    invoke-virtual {v3}, Ljava/lang/Thread;->start()V

    goto :goto_0
.end method

.method private setoncliclister()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 801
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;

    invoke-direct {v1, p0, v2}, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;-><init>(Lcom/example/inshopbuy/ConsumeInShop;Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 802
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->tv_order:Landroid/widget/TextView;

    new-instance v1, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;

    invoke-direct {v1, p0, v2}, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;-><init>(Lcom/example/inshopbuy/ConsumeInShop;Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 803
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->alipaylay:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;

    invoke-direct {v1, p0, v2}, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;-><init>(Lcom/example/inshopbuy/ConsumeInShop;Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 804
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixinpaylay:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;

    invoke-direct {v1, p0, v2}, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;-><init>(Lcom/example/inshopbuy/ConsumeInShop;Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 805
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->yucostpay:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;

    invoke-direct {v1, p0, v2}, Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;-><init>(Lcom/example/inshopbuy/ConsumeInShop;Lcom/example/inshopbuy/ConsumeInShop$mOncliclister;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 807
    iget-object v0, p0, Lcom/example/inshopbuy/ConsumeInShop;->allconsume:Landroid/widget/EditText;

    new-instance v1, Lcom/example/inshopbuy/ConsumeInShop$7;

    invoke-direct {v1, p0}, Lcom/example/inshopbuy/ConsumeInShop$7;-><init>(Lcom/example/inshopbuy/ConsumeInShop;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 853
    return-void
.end method

.method private youhuimake(Ljava/lang/String;Lcom/example/inshopbuy/ConsumBean;)Ljava/lang/String;
    .locals 7
    .param p1, "allcost"    # Ljava/lang/String;
    .param p2, "consumBean"    # Lcom/example/inshopbuy/ConsumBean;

    .prologue
    const/high16 v6, 0x42c80000    # 100.0f

    .line 563
    move-object v2, p1

    .line 565
    .local v2, "truecost":Ljava/lang/String;
    const-string v3, ""

    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 566
    const-string v2, "0"

    .line 595
    .end local v2    # "truecost":Ljava/lang/String;
    :cond_0
    :goto_0
    return-object v2

    .line 569
    .restart local v2    # "truecost":Ljava/lang/String;
    :cond_1
    invoke-virtual {p2}, Lcom/example/inshopbuy/ConsumBean;->getControltype()Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_2

    move-object v2, p1

    .line 570
    goto :goto_0

    .line 573
    :cond_2
    const/4 v0, 0x0

    .line 575
    .local v0, "d":F
    invoke-virtual {p2}, Lcom/example/inshopbuy/ConsumBean;->getControltype()Ljava/lang/String;

    move-result-object v3

    const-string v4, "3"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 577
    invoke-static {p1}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Float;->floatValue()F

    move-result v3

    invoke-virtual {p2}, Lcom/example/inshopbuy/ConsumBean;->getLimitzhekoucost()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Float;->floatValue()F

    move-result v4

    cmpg-float v3, v3, v4

    if-lez v3, :cond_0

    .line 581
    invoke-static {p1}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Float;->floatValue()F

    move-result v3

    invoke-virtual {p2}, Lcom/example/inshopbuy/ConsumBean;->getControlcontent()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Float;->floatValue()F

    move-result v4

    mul-float/2addr v3, v4

    div-float v0, v3, v6

    .line 582
    const-string v3, "turecost------>>>"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 583
    mul-float v3, v0, v6

    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v3

    int-to-float v3, v3

    div-float/2addr v3, v6

    invoke-static {v3}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v2

    goto :goto_0

    .line 586
    :cond_3
    invoke-virtual {p2}, Lcom/example/inshopbuy/ConsumBean;->getControltype()Ljava/lang/String;

    move-result-object v3

    const-string v4, "2"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    .line 588
    invoke-static {p1}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Float;->floatValue()F

    move-result v3

    invoke-virtual {p2}, Lcom/example/inshopbuy/ConsumBean;->getMjlimitcost()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Float;->floatValue()F

    move-result v4

    div-float/2addr v3, v4

    float-to-int v1, v3

    .line 589
    .local v1, "mum":I
    invoke-static {p1}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Float;->floatValue()F

    move-result v3

    int-to-float v4, v1

    invoke-virtual {p2}, Lcom/example/inshopbuy/ConsumBean;->getControlcontent()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Float;->floatValue()F

    move-result v5

    mul-float/2addr v4, v5

    sub-float/2addr v3, v4

    invoke-static {v3}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v2

    goto/16 :goto_0

    .line 591
    .end local v1    # "mum":I
    :cond_4
    invoke-virtual {p2}, Lcom/example/inshopbuy/ConsumBean;->getControltype()Ljava/lang/String;

    move-result-object v3

    const-string v4, "4"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    goto/16 :goto_0
.end method


# virtual methods
.method public aouctpay(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1
    .param p1, "orderid"    # Ljava/lang/String;
    .param p2, "waitpay_cost"    # Ljava/lang/String;

    .prologue
    .line 693
    new-instance v0, Lcom/example/inshopbuy/ConsumeInShop$6;

    invoke-direct {v0, p0, p1, p2}, Lcom/example/inshopbuy/ConsumeInShop$6;-><init>(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;Ljava/lang/String;)V

    .line 754
    invoke-virtual {v0}, Lcom/example/inshopbuy/ConsumeInShop$6;->start()V

    .line 755
    const/4 v0, 0x0

    return v0
.end method

.method public checkLogin()V
    .locals 6

    .prologue
    .line 290
    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    const-string v4, "userInfo"

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 291
    .local v1, "sPreferences":Landroid/content/SharedPreferences;
    const-string v3, "uid"

    const-string v4, ""

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 292
    .local v2, "uid":Ljava/lang/String;
    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 293
    new-instance v0, Landroid/content/Intent;

    iget-object v3, p0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    const-class v4, Lcom/example/m6wmr/LoginActivity;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 294
    .local v0, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v0}, Lcom/example/inshopbuy/ConsumeInShop;->startActivity(Landroid/content/Intent;)V

    .line 298
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    return-void
.end method

.method public getpaydata(Ljava/lang/String;)Z
    .locals 1
    .param p1, "order_id"    # Ljava/lang/String;

    .prologue
    .line 386
    new-instance v0, Lcom/example/inshopbuy/ConsumeInShop$3;

    invoke-direct {v0, p0, p1}, Lcom/example/inshopbuy/ConsumeInShop$3;-><init>(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V

    .line 440
    invoke-virtual {v0}, Lcom/example/inshopbuy/ConsumeInShop$3;->start()V

    .line 441
    const/4 v0, 0x0

    return v0
.end method

.method public gotoPay()V
    .locals 17

    .prologue
    .line 473
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->choice_pay_name:Ljava/lang/String;

    const-string v14, "alimobile"

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_0

    .line 475
    const-string v12, ""

    .line 478
    .local v12, "tempstr":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lcom/wmr/aplipay/AplipayConfig;

    invoke-direct {v1}, Lcom/wmr/aplipay/AplipayConfig;-><init>()V

    .line 480
    .local v1, "test":Lcom/wmr/aplipay/AplipayConfig;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v14, "PARTNER"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v2

    .line 481
    .local v2, "PARTNER":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v14, "SELLER"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v3

    .line 482
    .local v3, "SELLER":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v14, "RSA_PRIVATE"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v4

    .line 483
    .local v4, "RSA_PRIVATE":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v14, "RSA_PUBLIC"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v5

    .line 484
    .local v5, "RSA_PUBLIC":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v14, "Notify_Url"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v6

    .line 487
    .local v6, "Notify_Url":Ljava/lang/String;
    const-string v13, "PARTNER---"

    invoke-static {v13, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 488
    const-string v13, "SELLER----"

    invoke-static {v13, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 489
    const-string v13, "RSA_PRIVATE----"

    invoke-static {v13, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 490
    const-string v13, "RSA_PUBLIC--------"

    invoke-static {v13, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 491
    const-string v13, "Notify_Url---------"

    invoke-static {v13, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 493
    invoke-virtual/range {v1 .. v6}, Lcom/wmr/aplipay/AplipayConfig;->setPARTNER(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 494
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v14, "wmrid"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v13

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v15, "paytype"

    invoke-virtual {v14, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v14

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v16, "allcost"

    invoke-virtual/range {v15 .. v16}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v1, v13, v14, v15}, Lcom/wmr/aplipay/AplipayConfig;->OrderStr(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v12

    .line 499
    .end local v1    # "test":Lcom/wmr/aplipay/AplipayConfig;
    .end local v2    # "PARTNER":Ljava/lang/String;
    .end local v3    # "SELLER":Ljava/lang/String;
    .end local v4    # "RSA_PRIVATE":Ljava/lang/String;
    .end local v5    # "RSA_PUBLIC":Ljava/lang/String;
    .end local v6    # "Notify_Url":Ljava/lang/String;
    :goto_0
    move-object v8, v12

    .line 500
    .local v8, "payInfo":Ljava/lang/String;
    new-instance v9, Lcom/example/inshopbuy/ConsumeInShop$4;

    move-object/from16 v0, p0

    invoke-direct {v9, v0, v8}, Lcom/example/inshopbuy/ConsumeInShop$4;-><init>(Lcom/example/inshopbuy/ConsumeInShop;Ljava/lang/String;)V

    .line 517
    .local v9, "payRunnable":Ljava/lang/Runnable;
    new-instance v10, Ljava/lang/Thread;

    invoke-direct {v10, v9}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 518
    .local v10, "payThread":Ljava/lang/Thread;
    invoke-virtual {v10}, Ljava/lang/Thread;->start()V

    .line 559
    .end local v8    # "payInfo":Ljava/lang/String;
    .end local v9    # "payRunnable":Ljava/lang/Runnable;
    .end local v10    # "payThread":Ljava/lang/Thread;
    .end local v12    # "tempstr":Ljava/lang/String;
    :goto_1
    return-void

    .line 495
    .restart local v12    # "tempstr":Ljava/lang/String;
    :catch_0
    move-exception v7

    .line 497
    .local v7, "e":Lorg/json/JSONException;
    invoke-virtual {v7}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    .line 521
    .end local v7    # "e":Lorg/json/JSONException;
    .end local v12    # "tempstr":Ljava/lang/String;
    :cond_0
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->choice_pay_name:Ljava/lang/String;

    const-string v14, "weixin"

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_1

    .line 524
    new-instance v11, Lcom/tencent/mm/sdk/modelpay/PayReq;

    invoke-direct {v11}, Lcom/tencent/mm/sdk/modelpay/PayReq;-><init>()V

    .line 528
    .local v11, "req":Lcom/tencent/mm/sdk/modelpay/PayReq;
    :try_start_1
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    const-string v14, "appid"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->appId:Ljava/lang/String;

    .line 529
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    const-string v14, "partnerid"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->partnerId:Ljava/lang/String;

    .line 530
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    const-string v14, "prepayid"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->prepayId:Ljava/lang/String;

    .line 531
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    const-string v14, "noncestr"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->nonceStr:Ljava/lang/String;

    .line 532
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    const-string v14, "timestamp"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->timeStamp:Ljava/lang/String;

    .line 533
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    const-string v14, "package"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->packageValue:Ljava/lang/String;

    .line 534
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    const-string v14, "sign"

    invoke-virtual {v13, v14}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->sign:Ljava/lang/String;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    .line 544
    :goto_2
    const-string v13, "app data"

    iput-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->extData:Ljava/lang/String;

    .line 545
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    const-string v14, "\u6b63\u5e38\u8c03\u8d77\u652f\u4ed8"

    const/4 v15, 0x0

    invoke-static {v13, v14, v15}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v13

    invoke-virtual {v13}, Landroid/widget/Toast;->show()V

    .line 547
    iget-object v13, v11, Lcom/tencent/mm/sdk/modelpay/PayReq;->appId:Ljava/lang/String;

    move-object/from16 v0, p0

    invoke-static {v0, v13}, Lcom/tencent/mm/sdk/openapi/WXAPIFactory;->createWXAPI(Landroid/content/Context;Ljava/lang/String;)Lcom/tencent/mm/sdk/openapi/IWXAPI;

    move-result-object v13

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->api:Lcom/tencent/mm/sdk/openapi/IWXAPI;

    .line 548
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->api:Lcom/tencent/mm/sdk/openapi/IWXAPI;

    invoke-interface {v13, v11}, Lcom/tencent/mm/sdk/openapi/IWXAPI;->sendReq(Lcom/tencent/mm/sdk/modelbase/BaseReq;)Z

    goto/16 :goto_1

    .line 538
    :catch_1
    move-exception v7

    .line 540
    .restart local v7    # "e":Lorg/json/JSONException;
    invoke-virtual {v7}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_2

    .line 550
    .end local v7    # "e":Lorg/json/JSONException;
    .end local v11    # "req":Lcom/tencent/mm/sdk/modelpay/PayReq;
    :cond_1
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->choice_pay_name:Ljava/lang/String;

    const-string v14, "yucost"

    invoke-virtual {v13, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_2

    .line 551
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->orderid:Ljava/lang/String;

    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/example/inshopbuy/ConsumeInShop;->true_money:Landroid/widget/TextView;

    invoke-virtual {v14}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v14

    invoke-interface {v14}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v14

    const-string v15, "%"

    const-string v16, ""

    invoke-virtual/range {v14 .. v16}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v14

    const-string v15, " "

    const-string v16, ""

    invoke-virtual/range {v14 .. v16}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    move-object/from16 v0, p0

    invoke-virtual {v0, v13, v14}, Lcom/example/inshopbuy/ConsumeInShop;->aouctpay(Ljava/lang/String;Ljava/lang/String;)Z

    goto/16 :goto_1

    .line 554
    :cond_2
    const/4 v13, 0x1

    move-object/from16 v0, p0

    iput-boolean v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->ispaylock:Z

    .line 555
    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/example/inshopbuy/ConsumeInShop;->context:Landroid/content/Context;

    const-string v14, "\u8bf7\u9009\u62e9\u652f\u4ed8\u65b9\u5f0f"

    const/4 v15, 0x0

    invoke-static {v13, v14, v15}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v13

    invoke-virtual {v13}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1
.end method

.method public initdata(Ljava/lang/String;)V
    .locals 4
    .param p1, "results"    # Ljava/lang/String;

    .prologue
    .line 446
    const-string v2, "\u8fd4\u56de\u6570\u636e1111111111111111111111111111"

    invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 448
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 449
    .local v1, "json":Lorg/json/JSONObject;
    const-string v2, "alipay"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    iput-object v2, p0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    .line 450
    const-string v2, "weixin"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    iput-object v2, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    .line 451
    const-string v2, "plate"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    iput-object v2, p0, Lcom/example/inshopbuy/ConsumeInShop;->acountdata:Lorg/json/JSONObject;

    .line 453
    iget-object v2, p0, Lcom/example/inshopbuy/ConsumeInShop;->taodata:Lorg/json/JSONObject;

    const-string v3, "support"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 454
    iget-object v2, p0, Lcom/example/inshopbuy/ConsumeInShop;->alipaylay:Landroid/widget/LinearLayout;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 457
    :cond_0
    iget-object v2, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixindata:Lorg/json/JSONObject;

    const-string v3, "support"

    invoke-virtual {v2, v3}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 458
    iget-object v2, p0, Lcom/example/inshopbuy/ConsumeInShop;->weixinpaylay:Landroid/widget/LinearLayout;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 468
    .end local v1    # "json":Lorg/json/JSONObject;
    :cond_1
    :goto_0
    return-void

    .line 463
    :catch_0
    move-exception v0

    .line 465
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 1
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 878
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 880
    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    .line 881
    invoke-direct {p0}, Lcom/example/inshopbuy/ConsumeInShop;->getHttpShopConsumeData()V

    .line 885
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 106
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 107
    const v1, 0x7f030012

    invoke-virtual {p0, v1}, Lcom/example/inshopbuy/ConsumeInShop;->setContentView(I)V

    .line 108
    invoke-direct {p0}, Lcom/example/inshopbuy/ConsumeInShop;->initData()V

    .line 109
    invoke-direct {p0}, Lcom/example/inshopbuy/ConsumeInShop;->initView()V

    .line 110
    invoke-direct {p0}, Lcom/example/inshopbuy/ConsumeInShop;->setoncliclister()V

    .line 111
    invoke-virtual {p0}, Lcom/example/inshopbuy/ConsumeInShop;->checkLogin()V

    .line 112
    invoke-direct {p0}, Lcom/example/inshopbuy/ConsumeInShop;->getHttpShopConsumeData()V

    .line 114
    const/high16 v1, 0x7f0c0000

    invoke-virtual {p0, v1}, Lcom/example/inshopbuy/ConsumeInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 115
    .local v0, "top":Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/example/inshopbuy/ConsumeInShop;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 116
    const v1, 0x7f070026

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 117
    iget-object v1, p0, Lcom/example/inshopbuy/ConsumeInShop;->tv_order:Landroid/widget/TextView;

    const v2, 0x7f020020

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 120
    :cond_0
    new-instance v1, Lcom/example/inshopbuy/ConsumeInShop$1;

    invoke-direct {v1, p0}, Lcom/example/inshopbuy/ConsumeInShop$1;-><init>(Lcom/example/inshopbuy/ConsumeInShop;)V

    iput-object v1, p0, Lcom/example/inshopbuy/ConsumeInShop;->h:Landroid/os/Handler;

    .line 283
    return-void
.end method
